import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views'
import Nofind from '../views/404.vue'
import FoundList from '../views/FoundList.vue'
import FoundList1 from '../views/FoundList1.vue'

Vue.use(VueRouter)

const routes = [
  { path: '*', name: '/404', component: Nofind },
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/index',
    name: 'index',
    component: Index,
    children: [
      { path: '/foundlist', name: 'foundlist', component: FoundList },
      { path: '/foundlist1', name: 'foundlist1', component: FoundList1 }
    ]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})


export default router
